import logging

def loc1():
    logging.basicConfig(level=logging.DEBUG,
                        format='%(levelname)s %(message)s %(asctime)s %(filename)s %(lineno)d',
                        filename='hj.log',
                        filemode='w+')